package com.tdkj.model.shop;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * ShopTypes entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_shop_friendly_link")
public class BeanShopFriendlyLink extends BaseEntity {

	private BeanShop shop;
	private BeanShop friend ;
	/**
	 * @return the shop
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="shop_id")
	public BeanShop getShop() {
		return shop;
	}
	/**
	 * @param shop the shop to set
	 */
	public void setShop(BeanShop shop) {
		this.shop = shop;
	}
	/**
	 * @return the friend
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="friend_id")
	public BeanShop getFriend() {
		return friend;
	}
	/**
	 * @param friend the friend to set
	 */
	public void setFriend(BeanShop friend) {
		this.friend = friend;
	}
	
	
	

}